package com.yuba.front.domain.vo;

import com.yuba.front.domain.CommentPosts;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yuba.common.excel.annotation.ExcelDictFormat;
import com.yuba.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 文章评论视图对象 comment_posts
 *
 * @author modakai
 * @date 2024-12-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = CommentPosts.class)
public class CommentPostsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 对象存储主键
     */
    @ExcelProperty(value = "对象存储主键")
    private Long commentId;

    /**
     * 帖子id
     */
    @ExcelProperty(value = "帖子id")
    private Long postsId;

    /**
     * 评论用户id
     */
    @ExcelProperty(value = "评论用户id")
    private Long userId;

    /**
     * 父级评论id
     */
    @ExcelProperty(value = "父级评论id")
    private Long parentId;

    /**
     * 评论目标用户id;
     */
    @ExcelProperty(value = "评论目标用户id;")
    private Long replyUserId;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    /**
     * 是否置顶
     */
    @ExcelProperty(value = "是否置顶", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String topFlag;

    /**
     * 点赞数
     */
    @ExcelProperty(value = "点赞数")
    private Long likeCount;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
